<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Title</title>
</head>
<link href="../static/css/bootstrap.min.css" rel="stylesheet"/>
<link href="../static/css/bootstrap-combined.min.css" rel="stylesheet"/>
<script src="../static/js/jquery-3.2.0.min.js"></script>
<script src="../static/js/bootstrapValidator.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/js/AjaxModel.js"></script>
<script src="../static/js/Excomm.js"></script>

<body>
<div th:include="header::header"></div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <fieldset>

            <div class="row-fluid">
                <div class="span3">
                </div>
                <div class="span6">
                    <legend>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;申请卖车列表</legend>
                    <ul id="applies" class="list-group">
                    </ul>
                </div>
                <div class="span3">
                </div>
            </div>
            </fieldset>
        </div>
    </div>
</div>
<script th:inline="javascript">
    $(function () {

        /*<![CDATA[*/
        var s=[[${content}]];
        for(var i=0;i<s.length;i++) {
            var status=s[i].isOver;
            var resultStatus;
            if(status==0){
                resultStatus="未处理";
            }else if (status==1){
                resultStatus="正在处理";
            }else if(status==2){
                resultStatus="已经处理";
            }
            $("#applies").append("<li class='list-group-item'>" + "<a href='"+"/car_option/sale_applied_info?applieOrderId="+s[i].id+"'>" +"汽车型号:"+s[i].carXinghao+ "&nbsp;&nbsp;创建日期："+Excomm.transDate(s[i].createTime)+"&nbsp;&nbsp;是否处理："+resultStatus+"<a/>"+ "</li>");
        }
        /*]]>*/
    })
</script>
</body>
</html>